file formats - PDF - Content Stream OperatorsWhat links here?
PDF Content Stream Operators are inserted into the stream using postfix notation, so the arguments are listed first, then the operator.
Commas separate the arguments below, they are not used in the actual PDF file.



Non-Text oriented operators
argumentsoperatordescription
argumentsbClose, fill, and stroke path using nonzero winding number rule
argumentsBFill and stroke path using nonzero winding number rule
argumentsb*Close, fill, and stroke path using even-odd rule
argumentsB*Fill and stroke path using even-odd rule
argumentsBIBegin in-line image
argumentsEIEnd in-line image
x1 y1 x2 y2 x3 y3cAppend curved segment to path from current point to x3,y3 using points x1,y1 and x2, y2 as control points.
argumentsdset line dash pattern
(none) fFill path using nonzero winding number rule
argumentsf*Fill path using even-odd rule
argumentsgsSet parameters from graphics state parameter dictionary
argumentshclose subpath
argumentsjset line join style
argumentsJset line cap style
X, Y lappend straight line to path
X, Y mstart a new subpath
argumentsqsave graphics state (push?)
argumentsQrestore graphics state (pop?)
X, Y, Width, Heightreappend rectangle to path
(none) sclose and stroke path
(none) Sstroke path
argumentsshpaint area defined by shading pattern
argumentsvappend curved segment to path, replicating initial point
real numberwset line width
argumentsWset clipping path using non-zero winding rule number
argumentsW*set clipping path using even-odd rule
argumentsyappend curved segment to path, replicating final point
a b c d e fcmModify the current transformation matrix (CTM) by concatenating the specified matrix (see 8.3.2, "Coordinate Spaces"). Although the operands specify a matrix, they shall be written as six separate numbers, not as an array.
Text oriented operators (see also Text State Parameters)
argumentsoperatordescription
(none)BTbegin text object
(none)ETend text object
X, Y Tdmove text position
X, Y TDmove text position and set leading
name of font, heightTfset text font and size
A literal string Tjshow text
argumentsT*move to start of next text line
argumentsTcset character spacing
argumentsTJshow text allowing individual glyph positioning
argumentsTLset text leading
argumentsTmset text matrix and text line matrix
mode (int) Trset text rendering mode
float Tsset text rise (superscript or subscript)
float Twset word spacing
float Tzset horizontal text spacing
string'move to next line and show text (functions the same as T* string Tj)
aw ac string "set word and character spacing, move to next line, and show text (functions the same as aw Tw ac Tc string ')
Color oriented operators
argumentsoperatordescription
arguments CSSet color space for stroking operations
arguments csSet color space for nonstroking operations
0.0 <= x <= 1.0GSet gray level for stroking operations 0.0 = black, 1.0 = white
0.0 <= x <= 1.0gSet gray level for nonstroking operations 0.0 = black, 1.0 = white
R, G, B values RGset RGB color for stroking operations
R, G, B values rgset RGB color for non-stroking operations
arguments SCset color for stroking operations
arguments scset color for non-stroking operations



Resources
tailrecursive: PostScript Operators
file formats - PDF - Content Stream Operators
filename:file formats - PDF - Content Stream Operators
filename:file%20formats%20%2D%20PDF%20%2D%20Content%20Stream%20Operators
last edit:February 26 2017 21:09:09 (2625 days ago)
ct = 1714970410.000000 = May 06 2024 00:40:10
ft = 1488161349.000000 = February 26 2017 21:09:09
dt = 226809061.000000